package com.central.scheduler.api.entity.treeview;

import com.central.common.enums.TaskType;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

/**
 * @author Tindy
 * @date 2022/2/28
 * @describe
 */
public class TreeViewEntity {
    /**
     * name
     */
    private String name;

    /**
     * type
     */
    private TaskType type;

    /**
     * code
     */
    private long code;

    /**
     * instances list
     */

    private List<Instance> instances = new ArrayList<>();

    /**
     * children
     */
    private List<TreeViewEntity> children = new ArrayList<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public TaskType getType() {
        return type;
    }

    public void setType(TaskType type) {
        this.type = type;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public List<Instance> getInstances() {
        return instances;
    }

    public void setInstances(List<Instance> instances) {
        this.instances = instances;
    }

    public List<TreeViewEntity> getChildren() {
        return children;
    }

    public void setChildren(List<TreeViewEntity> children) {
        this.children = children;
    }

}
